package com.neusoft.demo10;

public class Employee {
    //编号
    private int eid;
    //姓名
    private String name;
    //性别
    private String sex;
    //所在部门
    private String department;
    //工资
    private double salary;

    public int getEid() {
        return eid;
    }

    public void setEid(int eid) {
        this.eid = eid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "不想显示内存地址";
    }

    public static void main(String[] args) {
        new Employee().setEid(123);
        new Employee().setName("fender");
        Employee e = new Employee();
        e.setEid(123);
        e.setName("fender");
        e.setSalary(4000);
    }
}
